package Unite;

public class FactoryUnit {

	/**
	 * @param classe
	 * @param attributes
	 * @param level
	 * @return Unit
	 */
	public static Unit CreateUnit(int classe, AttributeMap attributes, int level) {

		switch (classe) {
		case Unit.ARCHER:
			return new Archer(attributes, level);
		case Unit.GUERRIER:
			return new Guerrier(attributes, level);
		case Unit.CHEVALIER:
			return new Chevalier(attributes, level);
		case Unit.TORUK:
			return new Toruk(attributes, level);
		default:
			return null;
		}
	}
}
